package com.tong.lib_base.ft_login.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * author:liuzhitong
 * date:2022/2/18
 * description:登录模块实体类
 */
public class UserBean implements Parcelable {
    public String userAccount,userNickName,userPassword;

    public UserBean() {
    }

    public UserBean(String userAccount, String userNickName, String userPassword) {
        this.userAccount = userAccount;
        this.userNickName = userNickName;
        this.userPassword = userPassword;
    }

    protected UserBean(Parcel in) {
        userAccount = in.readString();
        userNickName = in.readString();
        userPassword = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(userAccount);
        dest.writeString(userNickName);
        dest.writeString(userPassword);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<UserBean> CREATOR = new Creator<UserBean>() {
        @Override
        public UserBean createFromParcel(Parcel in) {
            return new UserBean(in);
        }

        @Override
        public UserBean[] newArray(int size) {
            return new UserBean[size];
        }
    };

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserNickName() {
        return userNickName;
    }

    public void setUserNickName(String userNickName) {
        this.userNickName = userNickName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }
}
